package com.nerve.secondhandcar;

import org.ko.commons.util.Generate;
import org.ko.commons.util.Generate.GenerateBean;

/**
 * @project: secondHandCarPlatform
 * @file: CodeGenerator.java
 * @package: com.nerve.secondhandcar
 * @description:
 *	代码生成器
 *	
 * @author: 集成显卡	1053214511@qq.com
				IBM GDC, zengxm@cn.ibm.com
 * @date&time: 2014-10-9
 * @change log:
 */
public final class CodeGenerator {

	/**
	 * 生成car模块的代码
	 * @method name: car
	 * @return type: void
	 * @throws Exception 
	 */
	public void car() throws Exception {
		GenerateBean gb = new GenerateBean();
		gb.setClassAuthor("集成显卡");
		gb.setClassChineseName("汽车");
		gb.setClassName("Car");
		gb.setComment("平台中的汽车对象");
		gb.setPackageName("com.nerve");
		gb.setModuleName("secondhandcar");
		gb.setSubModuleName("");
		gb.setClean(true);
		
		Generate.generate(gb);
	}
	
	/**
	 * 生成图片类
	 * @method name: picture
	 * @return type: void
	 *	@throws Exception
	 */
	public void picture()throws Exception{
		GenerateBean gb = new GenerateBean();
		gb.setClassAuthor("集成显卡");
		gb.setClassChineseName("图片");
		gb.setClassName("Picture");
		gb.setComment("平台中的图片资源");
		gb.setPackageName("com.nerve");
		gb.setModuleName("secondhandcar");
		gb.setSubModuleName("");
		gb.setClean(true);
		
		Generate.generate(gb);
	}
	/**
	 * 生成测试师类
	 * @method name: picture
	 * @return type: void
	 *	@throws Exception
	 */
	public void evaluators()throws Exception{
		GenerateBean gb = new GenerateBean();
		gb.setClassAuthor("集成显卡");
		gb.setClassChineseName("测试师");
		gb.setClassName("evaluators");
		gb.setComment("平台中的测试师对象");
		gb.setPackageName("com.nerve");
		gb.setModuleName("secondhandcar");
		gb.setSubModuleName("");
		gb.setClean(true);
		
		Generate.generate(gb);
	}
	public static void main(String[] args) throws Exception {
		CodeGenerator codeGenerator = new CodeGenerator();
		//codeGenerator.car();
		//codeGenerator.picture();
		//codeGenerator.evaluators();
	}
}